<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec"%>
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<div class="headSection" style="margin-bottom:10px;">
        	<div class="midSection">
        		<div class="header">
                	<div class="logo"><img src="${pageContext.request.contextPath}/resources/images/logo.jpg" width="129" height="59" /></div>
                    <div class="fl compName">Resources Management System  <span>Ver 1.0</span></div>
                    <div class="fr loginInfo">
                    
                    <sec:authorize access="isAuthenticated()">
			    		<div>Welcome, <span><sec:authentication property="principal.username" /></span></div>
                        <div style="margin-top:4px; text-align:right;">
                        <spring:url value="/resources/j_spring_security_logout" var="logout"/>
					      <a href="${logout}">
					        <spring:message code="security_logout"/>
					      </a>
                         | <a href="#">Edit Profile</a></div>
			    	</sec:authorize>
                        
                    </div>
                    <div class="clear"></div>
                </div>
        	</div>
        	<div class="botSection">
        	<div class="fl left"></div>
    		<div class="fr right"></div>
    		<div class="mid"></div>
			<div class="clear"></div>
        </div>
		</div>